import request from '@/utils/request'

// 查询分装正式排产计划列表
export function listPackagingFormalSchedulingPlan(query) {
  return request({
    url: '/sales/packagingFormalSchedulingPlan/list',
    method: 'get',
    params: query
  })
}

// 查询分装正式排产计划详细
export function getPackagingFormalSchedulingPlan(id) {
  return request({
    url: '/sales/packagingFormalSchedulingPlan/' + id,
    method: 'get'
  })
}


// 新增分装正式排产计划
export function addPackagingFormalSchedulingPlan(data) {
  return request({
    url: '/sales/packagingFormalSchedulingPlan',
    method: 'post',
    data: data
  })
}

// 修改分装正式排产计划
export function updatePackagingFormalSchedulingPlan(data) {
  return request({
    url: '/sales/packagingFormalSchedulingPlan',
    method: 'put',
    data: data
  })
}

// 删除分装正式排产计划
export function delPackagingFormalSchedulingPlan(id) {
  return request({
    url: '/sales/packagingFormalSchedulingPlan/' + id,
    method: 'delete'
  })
}
